﻿using FreeSql;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ClothingShopping.Core.Configuration
{
    public  class DbConfig
    {
        /// <summary>
        /// 数据库类型
        /// </summary>
        public DataType Type { get; set; } = DataType.MySql;
        /// <summary>
        /// 是否创建数据库
        /// </summary>
        public bool CreateDb { get; set; } = false;
        /// <summary>
        /// 创建数据库名称
        /// </summary>
        public string? CreateDatabaseName { get; set; }
        /// <summary>
        /// 连接字符串
        /// </summary>
        public string? ConnectionString { get; set; }
        /// <summary>
        /// 是否迁移实体结构（自动）
        /// </summary>
        public bool IsAutoSyncDataStructure { get; set; } = false;

    }
}
